package com.csjbot.blackgaga.global;

import android.os.Environment;

import java.io.File;

/**
 * Created by jingwc on 2017/10/14.
 */

public class Constants {

    // 上身板
    public static final String UP_PLATE = "up_sn";
    // 下身板
    public static final String DOWN_PLATE = "down_plate";
    // 上位机
    public static final String UP_COMPUTER = "up_computer";
    // 导航核心板
    public static final String NAV = "nav";
    // SN
    public static final String SN = "sn";
    // 与Linux连接状态
    public static final String CONNECT_LINUX_BROADCAST = "linux_broadcast";
    public static final String LINUX_CONNECT_STATE = "linux_connect_state";

    // 更新LOGO
    public static final String UPDATE_LOGO = "update_logo";

    public static final String PRODUCT_IMG_PATH = Environment.getExternalStorageDirectory() +
            File.separator + "blackgaga" + File.separator + "product_image" + File.separator;//产品图片路径（包括轮播图片）
    public static final String PRODUCT_VIDEO_PATH = Environment.getExternalStorageDirectory() +
            File.separator + "blackgaga" + File.separator + "product_video" + File.separator;//产品视频路径

    // u盘路径
    public static final String USB_PATH = "/mnt/usb_storage";
    // 导航数据存放路径
    public static String NAV_DATA_PATH = Environment.getExternalStorageDirectory() + File.separator + "blackgaga"
            + File.separator + "nav_data";
    public static String[] suffixs = {
            ".jpg", ".jpeg", ".png"
    };
    // 搜索成功
    public static final int SEARCH_SUC = 0;
    // 复制成功
    public static final int COPY_SUC = 10;

    public static boolean isLoadMapSuccess = false;//地图是否是恢复成功
    public static long internalCheckLinux = 8000;//地图操作超时时间

    //声音
    public final static String WAV_PATH = "wav/";
    public final static String VOLUME_PATH = WAV_PATH + "volume.wav";

    public static class Connection{
        // 与底层linux连接状态
        public static boolean isLinuxConnect;
    }


    public static class Language{
        public static int CURRENT_LANGUAGE = 1;
        
        public final static int ENGELISH = 0;
        public final static int CHINESE = 1;
        public final static int JPANESE = 2;

        public static boolean isEnglish(){
            if(CURRENT_LANGUAGE == ENGELISH){
                return true;
            }
            return false;
        }

        public static String getLanguageStr(){
            String language = "cn";
            switch (Language.CURRENT_LANGUAGE){
                case Language.CHINESE:
                    language =  "cn";
                    break;
                case Language.ENGELISH:
                    language = "en";
                    break;
                case Language.JPANESE:
                    language = "jp";
                    break;
            }
            return language;
        }

    }

    // 是否是设置一键导览
    public static final String GUIDE_ALL = "guide_all";

    // 是否跳转其他界面
    public static final String JUMP_ACTIVITY_NAME = "jump_activity_name";

    public static final String WAKE_UP = "wake_up";

    public static final class Face {
        public static boolean person = false;
    }


}
